<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>date</title>
	<script type="text/javascript">

		var now  = new Date();//当前时间点的对象
		// document.write(now.getMonth());
		// nowTime = Math.round(now.getTime()/1000);

		// var gq = new Date('2017-10-01');

		// gqTime = Math.round(gq.getTime()/1000);

		// diff = gqTime-nowTime;

		// document.write(diff);
		// 
		
		var bt = new Date('1986-11-24');

		btTime = bt.getTime();

		var now = new Date();

		nowTime = now.getTime();

		document.write((nowTime-btTime)/86400/1000);




	</script>
</head>
<body>
	
</body>
</html>